package com.lsbc.pay.common;

/**
 * 
 * @author yiyang 
 *
 * @date 2019年8月7日
 */
public class BizException extends RuntimeException {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2194822515614851121L;
	private int code;
	
	

	public BizException(int code) {
		this.code = code;
	}

	public BizException(int code, String message) {
		super(message);
		this.code = code;
	}
	
	public BizException(int code, String message, Throwable cause) {
		super(message, cause);
		this.code = code;
	}

	public int getCode() {
		return code;
	}

	@Override
	public String toString() {
		return "HornetException{" + "code=" + code + '}';
	}

}
